﻿using strange.extensions.command.impl;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using strange.extensions.dispatcher.eventdispatcher.api;
using System;

public class GrabCommand : EventCommand {

    [Inject]
    public IntegrationModel IntegrationModel { get; set; }
    [Inject]
    public RoundModel RoundModel { get; set; }
    public override void Execute()
    {
        IntegrationModel.Multiply *= 2;
        GrabAgrs e = this.evt.data as GrabAgrs;
        dispatcher.Dispatch(ViewEvent.DealThreeCard, e);
        //开始游戏
        RoundModel.Start(e.cType);
    }
   
}
